From f373e63255f15ccb42a8ef11e8a4364febf8e182 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 1 Apr 2011 17:29:15 +0000 Subject: [PATCH] Followup r84825 Allow obtaining of an import token if users have the importupload right --- includes/api/ApiQueryInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 5b0d3255a8..8a6e570421 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -204,7 +204,7 @@ class ApiQueryInfo extends ApiQueryBase { public static function getImportToken( $pageid, $title ) { global $wgUser; - if ( !$wgUser->isAllowed( 'import' ) ) { + if ( !$wgUser->isAllowedAny( 'import', 'importupload' ) ) { return false; } -- 2.20.1